/**
 *	@project:	kybernetes
 *	@author:	D.Toepel
 *	@note:		---
 *	
 *	Copyright (C) 2009  D.Toepel <de.dtools> {at} <gmail> {dot} <com>
 *	
 *	This program is free software: you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License as published by
 *	the Free Software Foundation, either version 3 of the License, or
 *	(at your option) any later version.
 *	
 *	This program is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *	
 *	You should have received a copy of the GNU General Public License
 *	along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *	
 */
package dt.htwk.utilities;

import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeNode;

/**
 * <h3>Template</h3>
 *
 * @author DToepel
 *
 */
public class NaviNode extends DefaultMutableTreeNode implements TreeNode{
	
/* ****************************************************
 * Deklaration der Variablen und Komponenten
 * ***************************************************/

	/**
	 * serialVersionUID -- Standard: 1L
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * Bezeichnung des Eintrags im Navi-Panel
	 */
	private String name;
	
	/**
	 * Wird beim Anklicken uebermittelt
	 */
	private String actionCommand;
	

/* ****************************************************
 * Aufruf des Konstruktors
 * ***************************************************/

	/**
	 * <h3>NaviNode</h3>
	 * <pre>public NaviNode(String name, String actionCommand)</pre>
	 * <p>NaviNode ist ein Eintrag innerhalb des NaviTrees.</p>
	 * @param name - Bezeichnung des Eintrags im Navi-Panel
	 * @param actionCommand - Wird beim Anklicken uebermittelt
	 */
	public NaviNode(String name, String actionCommand){
		super();
		this.name = name;
		this.actionCommand = actionCommand;
	}

	
/* ****************************************************
 * PUBLIC - oeffentliche Methoden
 * ***************************************************/

	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getActionCommand() {
		return actionCommand;
	}


	public void setActionCommand(String actionCommand) {
		this.actionCommand = actionCommand;
	}

	public String toString(){
		return name;
	}
	

/* ****************************************************
 * PRIVATE - nicht-oeffentliche Methoden
 * ***************************************************/



}
